package com.anc.platform.utils;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.baomidou.mybatisplus.extension.api.R;

public class ExceptionUtil {
    public static R fallback(Integer id, Throwable e){
         return R.failed("===被异常降级啦===");
    }
    public static R handleException(Integer id, BlockException e){
        return R.failed("===被限流啦===");
    }
}
